added asynchronous option to annotation api