Support internal storage

Signed-off-by: Shaka Huang <shakalaca@gmail.com>