check_fs needs not to be a rec fun