bugfix: removing path before copying
bugfix: lock has now a ttl