fixed client without income, added several debug flags