added generic keyword saving/loading for distributions