removed excess libraries and inventory calls