cleanup of module template