Added redirection in grafit
Fixed bug in linker