basic main file logic and request structuring