added debug information, stopped adding too many layers