more logging and a greaterthan/lessthan fix =/