made data calls synchronous