static compile works