sending errors and changing location of titan database directory