revised task rejection on submit and semaphore implementation