updated installer based on functions