js fix thing since it wouldn't work on my machine normally
i should add a check for both of these tbh, nested try statements?