adjust instance name to match aws conventions
support optional third parameter for extra cache key
fix bug not using date at top of file