split server into multiple files