exit when gets returns nil
validate invalid orientations
drying up command parser