flags for running
error check input