changed config to enable thread and lock