bsd license. fixes #2