updated to API v4. Remote repo issue #35