quick and dirty api for testing in agent run