fixed problems with -c argument