refactoring: extracted utilities to a-base