Fix using_context and prefs handling (#17)