fix calculations without stress
move all references for stress into #ifdef
fix detection of missing smooth parameter