added parameter index for method param definition
fixed some log messages