added a check for mono binary