add cwd management in js:: protocol
add ocm management in units