admax conversion script to adrime