expose method for deleting keys; improve some syntax