prefixed internal vars, added test to ensure vars passed in are truthy before setting them true