Everything is working with fetching the mtime file attribue, it's even dyanmic in the code so an attribute other than mtime can be specified. Headers are still broken at the moment though