simplified custom nullhandler