add getannotations method.