bugfixes in add