made the adapter look slightly nicer, added some error printing