merged framework module into core, extracted interfaces to api