migrate kw-u and kw-id logic to post_deploy