added epoch (sec from 1970) and lock file