lease duration + other bugfixes