add reject handler for debug