simplified object spec construction a bit