added optional static argument to parameters() to get static keys