made --file paramater optional