fixing bug in wrapper. writing script that calls wrapper with all params