srry, didnt read your last comment, it does a lot more than that, but i started to split the script to find what might be the problem, until it came to this, so i think it must be the snmp_dispatcher which seem to be a loop that interferes with the Mainloop