prepare for local server