changed behaviour of saving local parameters