added support for terms of service