import remote codes from dir