move main formula download to resources