add defaults for mask and hash keys