refactored the internal.coffee file by moving it into the server folder