few fixups

fixed a bug with delete, got rid of the module keyword, and made an error value a local