finally working, prepared to be installed in a server
working perfectly!