botlib: clean up