working on bean adapter