debug flow chart added, manual merge