added mod build, swap, mem