this is probably not the right way to do this.