altered install functions; cleaned json