copied over from fraser lab private