set_path function and some todos