upload AMD pattern and server code added