implemented check for already existing file + skip category on 404