Fix #89 and added protocol in config