adding support for mutex from D flag