remove unnecessary template logic and misc setup