added some compatibility and sanity checks, update to 0.3