add rm api
done for the night