Sleep seems to be a good idea. Thanks for the tip! I'll try it.
If it won't help i'll post the relevant part from the dump log.
Edit: okay, i got it working, though i can't get the output from cmd() to a list, but i can use input_log than a filehandle on the the file to get what i need.