getting code to work with papercut