refresh takes a boolean value