fixed script to receive parameters from stdin and not from command line