error checking of initial arguments