added getprefs to givelabs