use string name of module instead of object itself fixes #6030