implement load from dir