add input stream function to Deck