add lock file to prevent simultaneous execution