fixed issue #36
also removed some sysouts