adding spod builder
drop old code, fix m-to-n relation bug