making everything synchronous