working with the core api