install file and almost done with functionality for multiple states