added prefix support, upgraded schema for minnow compatibility