changed api (listen example), added base64 file input