fixed serialization issues (lambdas are not serialized by default)
style - params and variables final