added on_delete() to state_loader module