bug fix; lock file naming reworked to be more sensible