add method chaining and register rest of console api