had to reduce stack sizes or printf would fill up RAM