adding handler and internal helper function for domain specific behavior