get it working in a terminal