added safety algorithm

- need to generate request and release vectors