clean up realtime module and fix breakage in broker paths