structuring magens_boilerplate