renamed phone_handler and added basic REST api handler