latest enhancements integrated but default sharedpreferences is causing problems