swap and other stuff