added validation to check is blocks are enabled