Add better support for multiple servers and remove format_in/format_out