making api work with new config and slashes