integrated code in desktop application