slash at the end removed in resource directory