try to make compatible with asset pipeline in production