adding in license and tweaking for self-hosting