added space model and migration