trying to fix cross origin problems