separate swap file creation and enablement