adding schema and model works now completely