was working only if -c specified