cleaned up with comments and stripped down to barest necesseties