pulled some shit out to a base template