added permissions corrected build