debug
improved debug