bug fixes, delete now works