add agent shdr code