processing of config file so it wont' break if some elements are absent.