read program from stdin