prevent errors with malformed params