new style, resource file, and cleanup