more code
fixes to stack prefaults