helper script cuz its complicated