flash update and bugfixes