add helper method to add file directly