added if and fixed path for coconut