rearrange methods in MainResource