updated contacts script for some portability