added wrapping of synchronious functions