add checks to install file