simplified API a bit