change mutex to chan for close errors, comments
lowercasing names