json stuff and time variables