have key downloading script also ensure directory exists