fix options detection from hash