FIX: finally got around to fixing the messy config init
FIX: added some file_exist checks on src files and relevant error dies