refactoring rtmfp app and rtmfp layer