added initial version of adapter