move memory_limit to before_install