Add instance/runs and fix api