make plug and cowboy optional