use halt/2 when we find it
fix plugin loading