new API methods (thanks to William Brumley)