add sendFile method