update conditional logic to something a more appropriate check
simplify admin logic when directly retrieving an attr
update var
make more pythonic