add support for local profile