get bucket from model