add basic errors and raise statements