fix bugs

datefunction needed localhost and temprng had a stray semicolon