getting the asyncronous script calls working