begin writing script for inhouse api interfacing