fixes #6, expose server object and file