move warn to api and rmwarning