fixed instance declaraction and config init