works with the chain api