misc. cleanup, reconfig, and path handling