fixed surface id generation
flask middleware for wwa search