fixed some minor installation issues in REM