improved (hopefully) thread safety in power and quad helper