mit license, although all this code will probably be scrapped soon