portrain config improved