move deps to object. closes #257