use batteries instead of extlib