fixed reps curl timeout and added port option