make use of REM_* variables too