add resource listing to adaptor and example, some cleanup