implement atoi error check
stub for alias
move variables from engine to main