allow methods to return anon classes