solved synchronous loading problem