plugin settings handling

Improved settings loading and parsing, add default return value