fixed to work with 1.4 of the api
removed debugging print statement