Install refactoring

Also we can use some exception for this case.