use flags in run command, closes #17