added locking with atime and mtime
added run target