change async layout fn to sync
create a new comodl context each load