use html object rather than explicit args
access dependencies as an attribute