keep ordered
encode pids
encode float/double
encode port