fix bugs similar to bug 103
start implementing < for keys