delete keys before creating them because there may be leftovers from last attempt