added getSemaphore
fix: added create method