add costs. closes #17