move ra_engine to app directory