just making a test server it works and it could have some flaws. might want to implement this in a future project maybe