added another parameter and parameter catching
fixes for autocompletes