fix type argument
fix order of compiled sources