added prefs for protocol. also added test project