added prelim stuff message procedure, semaphore service, function declarations, einuse error