restfull logic update

Signed-off-by: pussbb <pussbb@gmail.com>