added default value for success
2 minor bugfixes