copied over from sean's files