fixing stupid permission problem from lamer code