started working on c++ dispatcher/handler