added basic endpoints instead of listentcp. TODO ASK INFINITY WHY IT NEEDS TO BE ASYNC INSTEAD OF SYNC LIKE IT CURRENTLY IT