correct handling prepend_exists