added magic instead of localhost