added callback parser and improved password encoding