fixed some bugs, and added nginx proxy cache feature