defaults to null in query function, which breaks when used along with fetchplan. added default limit of 20 when used with fetchplan to fix issue. could also set =20 as default in function as alternative