A c++ port for ash framework