added swap to kernel