fixed some testing, added usefull debug info