allowing any code as schedule and fixing blocks array validation for block rules