running code with blocks and statuses