crooted version with dir based config