work against issue #38. so far works only for annotations.