command line checking & misc