can now check type based on commandline arg