code from a mud I used to be a part of a long, long time ago