attempt to stop stack smashing