moved RMEs to header files for proper interfacing