added some debug
added id of 0 by default