[pergola] write checks class to set the type of file