passing filename to script