succefully implemented preferences, but core dump galore