added directory helper and filename helper