timago plugin and cleanup