serves file on correct request