added whitelisted functions feature