adds -d option to delete session file