huge glob of copypaste