some debuging added