ugly synchronous call, temp solution