clean up Program API a little