implemented CSP features
implemented mutex locks