working in local mode