fixed command line argument functionality