bugfixes for stopos