add :try for get attribute