lock down expenses for archived contracts + more fixes for relative paths issue