adding a portable mode