added logging callbacks, setup parse