bugfixes to smrt