move socket controller to controllers