add part of exec, change init interface of memorymanager