small improvements, updated ref