adding local mode and removing api references