i would like to thank you all for your help. i found the problem to be a faulty megahal module. it broke somehow and caused the entire bot to halt. the thing that confused me was the fact that it kept giving different error msgs and since i am not a programmar, i didn't understand what was going on....