1. add functions for log
2. add memory config manager impl