better detect REST annotations