added more checks to the interpreter