fixing broken shitty mutex system