fixed external sd card and added init files