add port from environment var
don't remove reps