added autoremove option to table