modified capes api to allow spaces