add resolve method to handler