data transfer functions, port command