update the preput method in coprocess class, but haven't tested it yet