make application transaction safe