build min and bugfixes