battery node now uses pins module