code refactor, sync extension settings