added code to access BAPobject attributes

not yet working, no idea why :(