add sd card write permissions
use native circular shift implementation