first steps to using ectos gil release/capture stuctures, but problems with mutexes.