resolve doesnt everything to handle pageload execution correctly