added validation to core file