background updated, work on directives
move to rails-api