printing out using encoding, commented unimplemented stuff