add possibility to set a check callable function