fix syntactical errors, fix enums