remove middleware deprecated
fixed bugs
changed old port