add memory manage
add map and ready for clocker