fixed add and delete feature scripts.