rearrange and remove forward declarations; just call it static_max for now (#92)