apply-annotations now takes loc-based annotations
added option to accept direct loc annotations