updated context_base, has now all entry point except for debuging