switchd things over to a static library