fixed tab completion bug, fixed writing options to disk in cli mode