add initial support for consts retrieval on branch