refactor Keplerbot