examples and cleanup