updating to allow configuring of units