this obviously isn't working, do it on a separate script to ensure no race condition