fix parameter passing to remote resources