fixing strict errors and avoid error when no config is found