refactored to just pass filename to parent class