convert almost working
add debug data to application layout