syntax and exec errors handle