console API abstraction