read right parameters from command line