type safety abysmal, need to use enums instead of strings for program control