- added alternative 3
- fixed semaphore header