added swaplock, debugging