added check_result macro
draft