made get_from_path func