first implementation of serving files