fixing RPS module errors and syntax fails