new script to convert AD data