use a marker file for locking