fixing main sh