changed static thickness default and do not insert layers with thickness = 0