moving link command to entrypoint