appinfo, detect and write