moved check to install