packing and unpacking. handling settings as files