first working version of the PBS adaptor