fix lib and add charger