better access test
use Log for warning/error
style change