preferences & bug fixes