A non-standard amino acid will be automatically linked into a chain if:
1. The atoms are with 3.0 angstom
2. The atom names of the linking atoms are consistent with the standard names, N, CA, O, C.
To add a covalent between a the amino acid and the tag, you have choices.
A. In recent versions of phenix.refine, you can use the flag intra_chain=True.
B. You can generate some linking files using phenix.ligand_linking. This option allows you edit the link parameters to you liking.
C (and least recommended) Have LINK records in you model and use phenix.link_edits.
I'm happy to take a look at the specific residues in questions.
Cheers
Nigel
NB. Any files sent to me will be held in strictest confidence.