potentially better version of add_to_path