fix memory upload bug; add links to $delete functions