max_path and some new things