backwards compatible use of const_get