added the extract data and main file for the server side