add check for existing file to serve