more warnings fixes. closes #3