create helpers to fix url and format datetime