contact codes conversion and additional handling