added SERVER_PATH var and make upload a bit better, but it's broken :p)