move sd-model into separate file