cleaned up picdup and picput output