Cleaned up some code

ups, sry was my network code from an old project.. :)