configuration hell. need to rethink this, using convention.