added console interface