big fix for rails api access right