added models and rudimentary plugin