fixed bug with last-modified and cleaned up console logs