add logging and ingore read-only files