moved install function out of class