bugfixes and mouse controls