fixing up databag spec input