add local storage type to getInstanceByType