fun with pipes

reorder read/wait

some more stuff

remove exit check

set accurate default gpu count

remove debug statement