replace post_install to prepare_command