fixing bugs, adding no ssl mode, finishing endpoints